home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / PushBP.h.z / PushBP.h
C/C++ Source or Header  |  2002-10-15  |  3KB  |  129 lines

  1. /* 
  2.  *  @OSF_COPYRIGHT@
  3.  *  COPYRIGHT NOTICE
  4.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  5.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  6.  *  the full copyright text.
  7. */ 
  8. /* 
  9.  * HISTORY
  10. */ 
  11. /*   $XConsortium: PushBP.h /main/12 1995/07/13 17:44:19 drk $ */
  12. /*
  13. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  14. /*
  15. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  16. /*
  17. *  (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  18. /*
  19. *  (c) Copyright 1988 MICROSOFT CORPORATION */
  20. #ifndef _XmPButtonP_h
  21. #define _XmPButtonP_h
  22.  
  23. #include <Xm/PushB.h>
  24. #include <Xm/LabelP.h>
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. /* PushButton class structure */
  31.  
  32. typedef struct _XmPushButtonClassPart
  33. {
  34.    XtPointer extension;   /* Pointer to extension record */
  35.    
  36. #ifdef _SGIMOTIF
  37.    _SgClassExtension    _SG_vendorExtension;
  38. #endif
  39.  
  40. } XmPushButtonClassPart;
  41.  
  42.  
  43. /* Full class record declaration for PushButton class */
  44.  
  45. typedef struct _XmPushButtonClassRec {
  46.     CoreClassPart      core_class;
  47.     XmPrimitiveClassPart  primitive_class;
  48.     XmLabelClassPart      label_class;
  49.     XmPushButtonClassPart pushbutton_class;
  50. } XmPushButtonClassRec;
  51.  
  52.  
  53. externalref XmPushButtonClassRec xmPushButtonClassRec;
  54.  
  55. #ifdef _SGIMOTIF
  56.  
  57. typedef struct __SG_XmPushButtonExtPart {
  58.         
  59.   Pixmap        locate_pixmap;
  60.   Pixmap        locate_arm_pixmap;
  61.   Boolean       pixmap_locate_highlight;
  62.  
  63. }_SG_XmPushButtonExtPart;
  64.  
  65. typedef struct __SG_XmPushButtonExt {
  66.  
  67.   _SgInstanceExtensionRec     common;   /* Stuff all instance rec's have */
  68.   _SG_XmPushButtonExtPart      instance; /* Resources & instance var's */
  69.  
  70. } _SG_XmPushButtonExtRec, *_SG_XmPushButtonExt;
  71.  
  72. #define _SG_PushButtonPtr(w) ((_SG_XmPushButtonExt)(((XmPushButtonWidget)(w))->pushbutton._SG_vendorExtension))
  73.  
  74. #endif /* _SGIMOTIF */
  75.  
  76. /* PushButton instance record */
  77.  
  78. typedef struct _XmPushButtonPart
  79. {
  80.    Boolean         fill_on_arm;
  81.    Dimension        show_as_default;
  82.    Pixel        arm_color;
  83.    Pixmap        arm_pixmap;
  84.    XtCallbackList   activate_callback;
  85.    XtCallbackList   arm_callback;
  86.    XtCallbackList   disarm_callback;
  87.  
  88.    Boolean         armed;
  89.    Pixmap        unarm_pixmap;
  90.    GC               fill_gc;
  91.    GC               background_gc;
  92.    XtIntervalId     timer;    
  93.    unsigned char    multiClick;        /* KEEP/DISCARD resource */
  94.    int            click_count;
  95.    Time            armTimeStamp;
  96.    Boolean      compatible;   /* if false it is Motif 1.1 else Motif 1.0  */
  97.    Dimension    default_button_shadow_thickness;  
  98.         /* New resource - always add it
  99.                     to widgets dimension. */
  100.  
  101. #ifdef _SGIMOTIF
  102.    _SG_XmPushButtonExt    _SG_vendorExtension;
  103. #endif
  104.  
  105. } XmPushButtonPart;
  106.  
  107.  
  108. /* Full instance record declaration */
  109.  
  110. typedef struct _XmPushButtonRec {
  111.     CorePart         core;
  112.     XmPrimitivePart  primitive;
  113.     XmLabelPart      label;
  114.     XmPushButtonPart pushbutton;
  115. } XmPushButtonRec;
  116.  
  117.  
  118. /********    Private Function Declarations    ********/
  119.  
  120. /********    End Private Function Declarations    ********/
  121.  
  122.  
  123. #ifdef __cplusplus
  124. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  125. #endif
  126.  
  127. #endif /* _XmPButtonP_h */
  128. /* DON'T ADD ANYTHING AFTER THIS #endif */
  129.